
<%--<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>  
  <base href="<%=basePath%>">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>后台登录</title>
	<style type="text/css">
	table{
		text-align: center;
		border: red solid;
	}
	.textSize{
		width: 120px;
		height: 25px;
	}
	* {
		margin: 0px;
		padding: 0px;
	}
	body {
		font-family: Arial, Helvetica, sans-serif;
		font-size: 12px;
		margin: 10px 10px auto;
			}
	</style>
	<script type="text/javascript">

		//重置按钮
		function restFun(){
			document.getElementById("loginForm").reset();
		}
	//确定按钮
	function gogo(){
		value=a_name;
		("#a_password").val(a_password);
		console.log(a_name);
		console.log(a_password);
		//提交
		document.getElementById("loginForm").submit();

	}

	</script>
  </head>
  <body background=>
  	<%--@elvariable id="admin" type=""--%>
  	<form  action="admin/login" modelAttribute="admin" method="post" id="loginForm">
	<table>
		<tr>
			<td colspan="2"><img src="images/admin/login.gif"></td>
		</tr>
		<tr>
			<td>姓名：</td>
			<td>
				<input  id="name" name="a_name" type="text" class="textSize">
				<form:input path="a_name" cssClass="textSize"/>
			</td>
		</tr>
		<tr>
			<td>密码：</td>
			<td>
				<input id="password" name="a_password" type="text" class="textSize">
				<form:password path="a_password" cssClass="textSize" maxlength="20"/>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="submit" value="登录"  >
<%--				<input  type="image" src="images/admin/ok.gif" onclick="gogo()">--%>


<%--				<input  type="image"src="images/admin/cancel.gif" onclick="restFun()">--%>
				<input type="reset" value="重置" >
			</td>

		</tr>
	</table>
	</form>
	${msg}
  </body>
</html>
